package tech.aistar.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import tech.aistar.entity.Job;

import java.util.List;

public interface JobMapper {

    List<Job> findAll(@Param("name") String name, @Param("typeId") Integer typeId);

    /**
     * 根据id进行删除操作
     * @param id
     */
    @Delete("delete from job where id=#{value}")
    void delById(Integer id);
}
